<!DOCTYPE html>



  


<html class="theme-next pisces use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">



  
  
    
    
  <script src="/lib/pace/pace.min.js?v=1.0.2"></script>
  <link href="/lib/pace/pace-theme-minimal.min.css?v=1.0.2" rel="stylesheet">







<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />




  
  
  
  

  
    
    
  

  

  

  

  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.2" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="Hexo, NexT" />





  <link rel="alternate" href="/atom.xml" title="微凉的博客" type="application/atom+xml" />




  <link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico?v=5.1.2" />






<meta name="description" content="操作计算机有两种方式 图形界面 命令行 命令行的完整格式 命令名称 [选项]  [参数]    [ ]内的代表可选择的参数        命令行概述 dos（windows） shell（Linux、Unix、mac） csh ksh bash （本文介绍的）    常用命令 pwd (Print Working Directory) 查看当前目录（~ 表示用户的根目录 .. 表示上一层目录） c">
<meta property="og:type" content="website">
<meta property="og:title" content="微凉的博客">
<meta property="og:url" content="http://yoursite.com/tags/GIT基础.html">
<meta property="og:site_name" content="微凉的博客">
<meta property="og:description" content="操作计算机有两种方式 图形界面 命令行 命令行的完整格式 命令名称 [选项]  [参数]    [ ]内的代表可选择的参数        命令行概述 dos（windows） shell（Linux、Unix、mac） csh ksh bash （本文介绍的）    常用命令 pwd (Print Working Directory) 查看当前目录（~ 表示用户的根目录 .. 表示上一层目录） c">
<meta property="og:locale" content="zh-Hans">
<meta property="og:image" content="http://img.blog.csdn.net/20170913172257890?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvTDIyMDUzMDY3NDQ=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://ovi21695e.bkt.clouddn.com/QQ%E6%88%AA%E5%9B%BE20170913171757.png">
<meta property="og:image" content="http://img.blog.csdn.net/20170913174958588?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvTDIyMDUzMDY3NDQ=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://img.blog.csdn.net/20170913181106687?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvTDIyMDUzMDY3NDQ=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://img.blog.csdn.net/20170913181346294?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvTDIyMDUzMDY3NDQ=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://img.blog.csdn.net/20170913174252018?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvTDIyMDUzMDY3NDQ=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://img.blog.csdn.net/20170913174430304?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvTDIyMDUzMDY3NDQ=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://img.blog.csdn.net/20170913173426671?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvTDIyMDUzMDY3NDQ=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://img.blog.csdn.net/20170913173459553?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvTDIyMDUzMDY3NDQ=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:updated_time" content="2017-09-13T10:22:55.775Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="微凉的博客">
<meta name="twitter:description" content="操作计算机有两种方式 图形界面 命令行 命令行的完整格式 命令名称 [选项]  [参数]    [ ]内的代表可选择的参数        命令行概述 dos（windows） shell（Linux、Unix、mac） csh ksh bash （本文介绍的）    常用命令 pwd (Print Working Directory) 查看当前目录（~ 表示用户的根目录 .. 表示上一层目录） c">
<meta name="twitter:image" content="http://img.blog.csdn.net/20170913172257890?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvTDIyMDUzMDY3NDQ=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Pisces',
    sidebar: {"position":"left","display":"post","offset":12,"offset_float":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: true,
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://yoursite.com/tags/GIT基础.html"/>







  <title> | 微凉的博客</title>
  














</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">微凉的博客</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-commonweal">
          <a href="/404/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-heartbeat"></i> <br />
            
            公益404
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    
    
    
    <div class="post-block page">
      <header class="post-header">

	<h1 class="post-title" itemprop="name headline"></h1>



</header>

      
      
      
      <div class="post-body">
        
        
          <h2 id="操作计算机有两种方式"><a href="#操作计算机有两种方式" class="headerlink" title="操作计算机有两种方式"></a>操作计算机有两种方式</h2><ol>
<li>图形界面</li>
<li>命令行<ul>
<li>命令行的完整格式<ul>
<li>命令名称 [选项]  [参数]   <blockquote>
<p>[ ]内的代表可选择的参数</p>
</blockquote>
</li>
</ul>
</li>
</ul>
</li>
</ol>
<h2 id="命令行概述"><a href="#命令行概述" class="headerlink" title="命令行概述"></a>命令行概述</h2><ul>
<li>dos（windows）</li>
<li>shell（Linux、Unix、mac）<ul>
<li>csh</li>
<li>ksh</li>
<li>bash （本文介绍的）</li>
</ul>
</li>
</ul>
<h2 id="常用命令"><a href="#常用命令" class="headerlink" title="常用命令"></a>常用命令</h2><ul>
<li>pwd (Print Working Directory) 查看当前目录（~ 表示用户的根目录 .. 表示上一层目录）<br><img src="http://img.blog.csdn.net/20170913172257890?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvTDIyMDUzMDY3NDQ=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></li>
<li>cd (Change Directory) 切换目录，如 cd /etc  cd .. 返回上一级目录</li>
<li>ls (List) 查看当前目录下内容，如ls -al（第一个字符是D开头的那就代表是文件夹 -开头的代表是文件）例如：<br><img src="http://ovi21695e.bkt.clouddn.com/QQ%E6%88%AA%E5%9B%BE20170913171757.png" alt=""></li>
<li>mkdir (Make Directory) 创建目录，如 mkdir blog</li>
<li>touch 创建文件，如 touch index.html</li>
<li>cat 查看文件全部内容，如 cat index.html</li>
<li>less 查看文件，如more /etc/passwd、less /etc/passwd<br>（less 直接加文件名  用于查看内容多的可以分页查看文件里面的内容 f 向后翻一整页 b向前退一整页  q退出查看）<br><img src="http://img.blog.csdn.net/20170913174958588?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvTDIyMDUzMDY3NDQ=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="这里写图片描述"></li>
<li>rm (remove) 删除文件，如 rm index.html<ul>
<li>rm -rf(recursive force)     递归强制删除某个目录（后面跟要删除的那个目录）</li>
</ul>
</li>
<li>rmdir (Remove Directory) 删除文件夹，只能删除空文件夹，不常用</li>
<li>mv (move) 移动文件或重命名，如 mv index.html ./demo/index.html<br>（把outline.md的这个文件移动到 1 这个文件夹中）<br><img src="http://img.blog.csdn.net/20170913181106687?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvTDIyMDUzMDY3NDQ=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="这里写图片描述"><br>（把1这个文件夹重命名为hello）<br><img src="http://img.blog.csdn.net/20170913181346294?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvTDIyMDUzMDY3NDQ=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="这里写图片描述"></li>
<li>cp (copy) 复制文件，cp index.html ./demo/index.html</li>
<li>tab 自动补全，连按两次会将所有匹配内容显示出来</li>
<li><blockquote>
<p>和 &gt;&gt;重定向，如echo hello world! &gt; README.md，&gt;覆盖 &gt;&gt;追加<br>  （覆盖&gt;）<img src="http://img.blog.csdn.net/20170913174252018?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvTDIyMDUzMDY3NDQ=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="覆盖"><br>  （追加&gt;&gt;）<img src="http://img.blog.csdn.net/20170913174430304?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvTDIyMDUzMDY3NDQ=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="追加"></p>
</blockquote>
</li>
<li>| 管道符可以将多个命令连接使用，上一次（命令）的执行结果当成下一次（命令）的参数。</li>
<li>grep 匹配内容，一般结合管道符使用</li>
<li>clear 清除当前屏幕显示的内容</li>
</ul>
<h2 id="vi编辑器"><a href="#vi编辑器" class="headerlink" title="vi编辑器"></a>vi编辑器</h2><blockquote>
<p>linux操作系统标配，相当于windows下的记事本。</p>
</blockquote>
<h3 id="vi编辑器的三种模式"><a href="#vi编辑器的三种模式" class="headerlink" title="vi编辑器的三种模式"></a>vi编辑器的三种模式</h3><blockquote>
<p>vi编辑器提供了3种模式，分别是命令模式、插入模式、底行模式，每种模式下用户所能进行的操作是不一样的。</p>
</blockquote>
<ul>
<li>3种模式的切换如下图所示：</li>
</ul>
<p><img src="http://img.blog.csdn.net/20170913173426671?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvTDIyMDUzMDY3NDQ=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="这里写图片描述"></p>
<h3 id="vi常用操作"><a href="#vi常用操作" class="headerlink" title="vi常用操作"></a>vi常用操作</h3><ul>
<li>a) 打开/创建文件， vi 文件路径</li>
<li>b) 底行模式 :w保存，:w filenme另存为</li>
<li>c) 底行模式 :q退出</li>
<li>d) 底行模式 :wq保存并退出 write quit</li>
<li>e) 底行模式 :e! 撤销更改，返回到上一次保存的状态</li>
<li>f) 底行模式 :q! 不保存强制退出</li>
<li>g) 底行模式 :set nu 设置行号</li>
<li>h) 命令模式 ZZ（大写）保存并退出</li>
<li>i) 命令模式 u辙销操作，可多次使用</li>
<li>j) 命令模式 dd删除当前行</li>
<li>k) 命令模式 yy复制当前行</li>
<li>l) 命令模式 p 粘贴内容</li>
<li>m) 命令模式 ctrl+f向前翻页</li>
<li>n) 命令模式 ctrl+b向后翻页</li>
<li>o) 命令模式 i进入编辑模式，当前光标处插入</li>
<li>p) 命令模式 a进入编辑模式，当前光标后插入</li>
<li>q) 命令模式 A进入编辑模式，光标移动到行尾</li>
<li>r) 命令模式 o进入编辑模式，当前行下面插入新行</li>
<li>s) 命令模式 O进入编辑模式，当前行上面插入新行</li>
</ul>
<h2 id="版本控制概述"><a href="#版本控制概述" class="headerlink" title="版本控制概述"></a>版本控制概述</h2><ul>
<li>本地版本控制</li>
<li>集中版本控制</li>
<li>分布式版本控制</li>
</ul>
<h2 id="git环境安装"><a href="#git环境安装" class="headerlink" title="git环境安装"></a>git环境安装</h2><ul>
<li>window安装<ul>
<li><a href="http://git-scm.com/download/win" target="_blank" rel="external">下载地址</a>，下载后和普通软件安装方式一样</li>
</ul>
</li>
<li>linux安装<ul>
<li>CentOS发行版：sudo yum install git</li>
<li>Ubuntu发行版：sudo apt-get install git</li>
</ul>
</li>
<li>Mac安装<ul>
<li>打开Terminal直接输入git命令，会自动提示，按提示引导安装即可</li>
</ul>
</li>
</ul>
<h2 id="git工作原理"><a href="#git工作原理" class="headerlink" title="git工作原理"></a>git工作原理</h2><h3 id="git的三个工作区域"><a href="#git的三个工作区域" class="headerlink" title="git的三个工作区域"></a>git的三个工作区域</h3><ul>
<li>工作目录</li>
<li>暂存区域</li>
<li>本地仓库</li>
</ul>
<p><img src="http://img.blog.csdn.net/20170913173459553?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvTDIyMDUzMDY3NDQ=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="这里写图片描述"></p>
<h3 id="git管理文件的4中状态"><a href="#git管理文件的4中状态" class="headerlink" title="git管理文件的4中状态"></a>git管理文件的4中状态</h3><ul>
<li>未追踪untraced</li>
<li>已暂存staged</li>
<li>已提交commited</li>
<li>已修改modified</li>
</ul>
<h2 id="git工作流程-本地创建仓库"><a href="#git工作流程-本地创建仓库" class="headerlink" title="git工作流程-本地创建仓库"></a>git工作流程-本地创建仓库</h2><ol>
<li>配置用户信息</li>
<li>初始化仓库</li>
<li>添加文件到暂存区</li>
<li>提交文件</li>
<li>查看文件状态</li>
<li>查看提交历史</li>
<li>撤销文件修改</li>
<li>恢复版本</li>
</ol>
<h2 id="git分支操作"><a href="#git分支操作" class="headerlink" title="git分支操作"></a>git分支操作</h2><h3 id="分支概述"><a href="#分支概述" class="headerlink" title="分支概述"></a>分支概述</h3><h3 id="分支操作"><a href="#分支操作" class="headerlink" title="分支操作"></a>分支操作</h3><ol>
<li>创建分支</li>
<li>切换分支</li>
<li>合并分支</li>
<li>删除分支</li>
</ol>
<h2 id="Git命令"><a href="#Git命令" class="headerlink" title="Git命令"></a>Git命令</h2><ul>
<li>配置用户信息<ul>
<li>全局配置，软件安装目录C:\Program Files\Git\mingw64\etc\gitconfig</li>
<li>用户配置，用户名目录C:\Users\www.gitconfig</li>
<li>项目配置，项目目录</li>
<li>git config –global user.name zhangsan</li>
<li>git config –global user.email “zhangsan@163.com”</li>
</ul>
</li>
<li>查看文件状态<ul>
<li>git status</li>
</ul>
</li>
<li>查看提交记录(按q键退出)<ul>
<li>git log</li>
</ul>
</li>
<li>工作区添加到暂存区<ul>
<li>git add</li>
</ul>
</li>
<li>暂存区覆盖工作区内容<ul>
<li>git checkout</li>
</ul>
</li>
<li>暂存区提交到本地仓库<ul>
<li>git commit -m ‘bug fixed’</li>
</ul>
</li>
<li>回滚特定版本<ul>
<li>git reset –hard <commit></commit></li>
</ul>
</li>
</ul>

        
      </div>
      
      
      
    </div>
    
    
    
  </div>


          </div>
          


          
  <div class="comments" id="comments">
    
      <div id="lv-container" data-id="city" data-uid="MTAyMC8zMDQ5NC83MDQ4"></div>
    
  </div>


        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap" >
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="/images/avatar.png"
               alt="微凉" />
          <p class="site-author-name" itemprop="name">微凉</p>
           
              <p class="site-description motion-element" itemprop="description"></p>
          
        </div>
        <nav class="site-state motion-element">

          
            <div class="site-state-item site-state-posts">
              <a href="/archives/">
                <span class="site-state-item-count">5</span>
                <span class="site-state-item-name">日志</span>
              </a>
            </div>
          

          

          
            
            
            <div class="site-state-item site-state-tags">
              <a href="/tags/index.html">
                <span class="site-state-item-count">2</span>
                <span class="site-state-item-name">标签</span>
              </a>
            </div>
          

        </nav>

        
          <div class="feed-link motion-element">
            <a href="/atom.xml" rel="alternate">
              <i class="fa fa-rss"></i>
              RSS
            </a>
          </div>
        

        <div class="links-of-author motion-element">
          
        </div>

        
        

        
        
          <div class="links-of-blogroll motion-element links-of-blogroll-inline">
            <div class="links-of-blogroll-title">
              <i class="fa  fa-fw fa-globe"></i>
              推荐阅读
            </div>
            <ul class="links-of-blogroll-list">
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.uisdc.com/" title="优设" target="_blank">优设</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="https://mlizheng.github.io/TIME/" title="李征" target="_blank">李征</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.alloyteam.com/nav/" title="Web前端导航" target="_blank">Web前端导航</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.36zhen.com/t?id=3448" title="前端书籍资料" target="_blank">前端书籍资料</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://ife.baidu.com/" title="百度前端技术学院" target="_blank">百度前端技术学院</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://wf.uisdc.com/cn/" title="google前端开发基础" target="_blank">google前端开发基础</a>
                </li>
              
            </ul>
          </div>
        

        


      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#操作计算机有两种方式"><span class="nav-number">1.</span> <span class="nav-text">操作计算机有两种方式</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#命令行概述"><span class="nav-number">2.</span> <span class="nav-text">命令行概述</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#常用命令"><span class="nav-number">3.</span> <span class="nav-text">常用命令</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#vi编辑器"><span class="nav-number">4.</span> <span class="nav-text">vi编辑器</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#vi编辑器的三种模式"><span class="nav-number">4.1.</span> <span class="nav-text">vi编辑器的三种模式</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#vi常用操作"><span class="nav-number">4.2.</span> <span class="nav-text">vi常用操作</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#版本控制概述"><span class="nav-number">5.</span> <span class="nav-text">版本控制概述</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#git环境安装"><span class="nav-number">6.</span> <span class="nav-text">git环境安装</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#git工作原理"><span class="nav-number">7.</span> <span class="nav-text">git工作原理</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#git的三个工作区域"><span class="nav-number">7.1.</span> <span class="nav-text">git的三个工作区域</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#git管理文件的4中状态"><span class="nav-number">7.2.</span> <span class="nav-text">git管理文件的4中状态</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#git工作流程-本地创建仓库"><span class="nav-number">8.</span> <span class="nav-text">git工作流程-本地创建仓库</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#git分支操作"><span class="nav-number">9.</span> <span class="nav-text">git分支操作</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#分支概述"><span class="nav-number">9.1.</span> <span class="nav-text">分支概述</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#分支操作"><span class="nav-number">9.2.</span> <span class="nav-text">分支操作</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Git命令"><span class="nav-number">10.</span> <span class="nav-text">Git命令</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy;  1996 - 
  <span itemprop="copyrightYear">2017</span>
  <span class="with-love">
    <i class="fa fa-hand-o-right" aria-hidden="true"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">微凉</span>
</div>


<!-- <div class="powered-by">
  由 <a class="theme-link" href="https://hexo.io">Hexo</a> 强力驱动
</div>

<div class="theme-info">
  主题 -
  <a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
    NexT.Pisces
  </a>
</div>

-->

        
<div class="busuanzi-count">
  <script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>

  
    <span class="site-uv">
      <i class="fa fa-user"></i>
      <span class="busuanzi-value" id="busuanzi_value_site_uv"></span>
      
    </span>
  

  
    <span class="site-pv">
      <i class="fa fa-eye"></i>
      <span class="busuanzi-value" id="busuanzi_value_site_pv"></span>
      
    </span>
  
</div>


        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  


  











  
  <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>

  
  <script type="text/javascript" src="/lib/canvas-nest/canvas-nest.min.js"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.2"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.2"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.1.2"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.2"></script>



  
    <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.2"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.2"></script>

  

  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.2"></script>



  


  




	





  





  
    <script type="text/javascript">
      (function(d, s) {
        var j, e = d.getElementsByTagName(s)[0];
        if (typeof LivereTower === 'function') { return; }
        j = d.createElement(s);
        j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
        j.async = true;
        e.parentNode.insertBefore(j, e);
      })(document, 'script');
    </script>
  






  





  

  

  

  

  

  

</body>
</html>
